
package com.ds.app.filter;
import java.util.List;

import com.ds.app.Module;

/**
 * <p>
 * Title: JDSORG
 * </p>
 * <p>
 * Description: 模块权限过滤器
 * </p>
 * <p>
 * Copyright: Copyright (c) 2009
 * </p>
 * <p>
 * Company: JDS软件
 * </p>
 * 
 * @author wenzhang li
 * @version 1.0
 */
public  class RightModuleFilter extends ModuleFilter {

	public List<String> moduleIds;
	public  RightModuleFilter(List<String> moduleIds){
		this.moduleIds=moduleIds;
	}
	@Override
	public boolean filterModule(Module obj) {
		if (moduleIds==null||moduleIds.contains(obj.getID())){
			return true;
		}
		return false;
	}


}
